These are example scripts to illustrate how you can use AppleScript. Additional examples are available from the EndNote support site at www.endnote.com/support.
Example 1: Start EndNote, create a new library named DinoLibrary in a Libraries folder, and close the new library

Example 2: Start EndNote, open the Sample_Library_X9 library, search the Keywords field for the term "dinosaur," format the references in the Annotated style, and save the results to your desktop in an RTF file titled "DinoReading.rtf"

Example 3: Get a list (in ScriptEditor) of all output styles currently available in EndNote

Example 4: Attach PMID.pdf files to existing EndNote references.
This is a more complicated script which will attach PDF files to the File Attachment field in existing EndNote references. For this example, we must assume these things:
You have PMID.pdf files from PubMed saved to your hard drive.
Your EndNote library is open.
Some of your EndNote references include PMID numbers in the Accession Number field that correspond to the PMID.pdf files.
The matching EndNote references have empty File Attachment fields.
Note: Lines that begin with "- -" are comments that are not part of the script.
